home *** CD-ROM | disk | FTP | other *** search
Text File | 1997-01-31 | 573 b | 31 lines | [TEXT/CWIE] |
-
- class linesegment extends actor {
-
- /*
- public boolean pointInActor (int x, int y) {
- Rectangle br = boundsrect(true);
- int distance = 1;
-
- if ((x >= br.x) && (x <= br.x + br.width) &&
- (y >= br.y) && (y <= br.y + br.height) &&
- (distance <= distance)
- )
- return true;
- else
- return false;
-
- }
-
-
-
- public void drawsimpleshape (paper p) {
- p.g.drawLine(p.r.x, p.r.y, p.r.width, p.r.height);
- }
-
- public void complexdraw (paper p) {
- super.complexdraw(p);
- p.g.setColor(sk8.black.currentColor);
- p.g.drawLine(p.r.x, p.r.y, p.r.width, p.r.height);
- }
- */
- }